The instructions below will help you with some python code samples, or troubleshoot your python installation.
How to check your Python environment version
Run the following commands, and check you are running the right level of versions for python and pip.
Depending on your version of Python, you should get one of the outputs below (the revision numbers — 3rd digit — may differ though).
$ python -V
Python 2.7.11
$ pip -V
pip 8.1.2 from c:\python27\lib\site-packages (python 2.7)
or if you’re running Python 3.5:
$ python -V
Python 3.5.1
$ pip -V
pip 9.0.1 from c:\python35\lib\site-packages (python 3.5)
If warned, proceed to a pip upgrade with the instructions on the command line. I was personally invited to upgrade to pip 9 at that step.
You may need to run both versions 2.7 and 3.5 of python on your machine. This is my case as I use the gcloud tools which requires python 2.7, and our Cisco Spark learning labs at DevNet require version 3.5.
You can then force Visual Studio to use a specific python runtime by reaching to your VS Code settings. Then, add a “python.path” property to your user or workspace settings. Choose user settings if you want this preference to be shared among all your workspaces.

How can I check if a module is installed ?
It only takes a shell snippet. If the module is not installed, you get an error on line 1. If it is installed, line 2 returns 0.
$ python -c "import flask"
$ echo $?
and to check the version of the module, type pip show as in:
$ pip show flask
Some python samples to run with VS Code
If you have no python directory filled with python script samples, clone the DevNet samples scripts for Cloud Collab, and change to the directory as described below.
In that directory, you’ll find a helloworld.py script, as well as a simple api.py script built with the flask library.
Open VS Code from this directory by simply typing “code .”
$ git clone https://github.com/CiscoDevNet/devnet-express-cloud-collab-code-samples
$ cd devnet-express-cloud-collab-code-samples/
$ cd itp/collab-tools-visual-studio-code-ide-itp/
$ ls
flask-api.py helloworld.py version.py
$ code .